﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EPiServer.Core;

namespace EPiServer.Models
{
    public class Page : BaseModel
    {
        public string Image { get; set; }
        public override string MainBody { get; set; }
        public PageReference NewsRoot { get; set; }
        public int NewsCount { get; set; }
        public PageReference EventsRoot { get; set; }
        public int EventsCount { get; set; }
        public string Logotype { get; set; }
        public PageReference ContactPage { get; set; }
        public PageReference PrivacyPage { get; set; }
        public PageReference SitemapPage { get; set; }
        //public PageReference RssContainer { get; set; }

        public PageReference MainListRoot { get; set; }
        public int MainListCount { get; set; }
        [PopulateFrom("MainListRoot", "MainListCount")]
        public List<BaseModel> MainList { get; set; }
        public PageReference SecondaryListRoot { get; set; }
        public int SecondaryListCount { get; set; }
        [PopulateFrom("SecondaryListRoot", "SecondaryListCount")]
        public List<BaseModel> SecondaryList { get; set; }

        public Page()
        {
            //MainList = new List<BaseModel>();
            //SecondaryList = new List<BaseModel>();
        }
    }
}